<?php

namespace app\api\controller;

use app\api\model\Nav as NavModel;
use app\BaseController;

class Nav extends BaseController
{
    /* 获取 */
    public function index()
    {
        $cid = input('cid', 0, 'intval');
        $data = NavModel::order('sort asc')->where(['cid' => $cid, 'status' => 1])->select();
        return show(config('status.success'), '获取导航', $data);
    }
}
